package com.api.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("user_content_history")
public class UserContentHistory {
    
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private Long userId;
    
    private Long contentId;
    
    private Integer viewCount = 0;
    
    private LocalDateTime lastViewTime;
    
    private LocalDateTime createTime;
    
    private LocalDateTime updateTime;
}